<% content_for :title do %>Add a new user<% end %>
<h1>Add a new user</h1>


<% if @user.errors.any? %>
	<div id="error_explanation">
		<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being added:</h2>

		<ul>
		<% @user.errors.full_messages.each do |msg| %>
			<li><%= msg %></li>
		<% end %>
		</ul>
	</div>
<% end %>


<%= simple_form_for @user do |f| %>

	<%= f.input :first_name %>
	<%= f.input :last_name %>
	<%= f.input :email_address %>
	<%= f.input :password %>
	<%= f.input :password_confirmation %>
	<%= f.button :submit %>
<% end %>
